import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {SignupComponent} from "./pages/signup/signup.component";
import {SigninComponent} from "./pages/signin/signin.component";

const routes: Routes = [
  // {path: '', redirectTo: 'signin', pathMatch: 'full'},
  {path: 'signup', component: SignupComponent, data: {title: '注册'}},
  {path: 'signin', component: SigninComponent, data: {title: '登录'}},
  {path: 'pages', loadChildren: './pages/pages.module#PagesModule'},
  {path: '**', redirectTo: '/pages/dashboard'}
];

@NgModule({
  imports: [RouterModule.forRoot(routes, {useHash: true, enableTracing: false})],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
